/* eslint valid-jsdoc: "off" */

'use strict'

module.exports = appInfo => {
  const dbName = 'xhx'
  const host = `http://36.99.169.168`

  const config = {
    host,
    h5: `${host}/h5`,
    dbName,
  }

  config.cluster = {
    listen: {
      path: '',
      port: 7002,
      hostname: '0.0.0.0',
    },
  }

  config.mongoose = {
    url: `mongodb://root:mTyeMRzuYYZscCRy@localhost:27017/${dbName}?authSource=admin`,
  }

  config.mysql = {
    host: '192.168.0.93',
    user: 'root',
    password: 'TAeB8bmBvFG2LV~',
    database: 'xhyqfk',
    port: 3306,
  }

  config.knex = {
    client: 'mysql',
    connection: config.mysql,
    pool: { min: 0, max: 7 },
    debug: true,
  }

  return config
}
